from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^groundtruth/', include('groundtruth.foo.urls')),

    # Uncomment this for admin:
    (r'^$', 'groundtruth.map.views.index', {}, 'index'),
    #url(r'^location/(?P<location_id>[0-9]+)/', 'groundtruth.location.views.location_detail', name='location-detail'),
    (r'^locations/', 'groundtruth.map.views.locationsXml'),
    (r'^locationstest/', 'groundtruth.map.views.locationsXmlTest'),
    (r'^map/', include('groundtruth.map.urls')),
    (r'^location/', include('groundtruth.location.urls')),
    #(r'^profile/', include('userprofile.urls')),
    (r'^accounts/', include('userprofile.urls')),
    #(r'^logout/$', 'account.views.logout', {'template': 'account/logout.html'}),
    (r'^flickrauth/', 'location.flickr.flickr_auth_redirect'),
    (r'^flickrcallback/', 'location.flickr.callback'),
    (r'^uploadtest/', 'location.flickr.upload_test'),
    (r'^admin/(.*)', admin.site.root),
)
